package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TravelOrderMapper;
import com.ruoyi.system.domain.TravelOrder;
import com.ruoyi.system.service.ITravelOrderService;

/**
 * 行程单模块Service业务层处理
 * 
 * @author 宋一鸣
 * @date 2025-05-16
 */
@Service
public class TravelOrderServiceImpl implements ITravelOrderService 
{
    @Autowired
    private TravelOrderMapper travelOrderMapper;

    /**
     * 查询行程单模块
     * 
     * @param id 行程单模块主键
     * @return 行程单模块
     */
    @Override
    public TravelOrder selectTravelOrderById(Long id)
    {
        return travelOrderMapper.selectTravelOrderById(id);
    }

    /**
     * 查询行程单模块列表
     * 
     * @param travelOrder 行程单模块
     * @return 行程单模块
     */
    @Override
    public List<TravelOrder> selectTravelOrderList(TravelOrder travelOrder)
    {
        return travelOrderMapper.selectTravelOrderList(travelOrder);
    }

    /**
     * 新增行程单模块
     * 
     * @param travelOrder 行程单模块
     * @return 结果
     */
    @Override
    public int insertTravelOrder(TravelOrder travelOrder)
    {
        return travelOrderMapper.insertTravelOrder(travelOrder);
    }

    /**
     * 修改行程单模块
     * 
     * @param travelOrder 行程单模块
     * @return 结果
     */
    @Override
    public int updateTravelOrder(TravelOrder travelOrder)
    {
        return travelOrderMapper.updateTravelOrder(travelOrder);
    }

    /**
     * 批量删除行程单模块
     * 
     * @param ids 需要删除的行程单模块主键
     * @return 结果
     */
    @Override
    public int deleteTravelOrderByIds(Long[] ids)
    {
        return travelOrderMapper.deleteTravelOrderByIds(ids);
    }

    /**
     * 删除行程单模块信息
     * 
     * @param id 行程单模块主键
     * @return 结果
     */
    @Override
    public int deleteTravelOrderById(Long id)
    {
        return travelOrderMapper.deleteTravelOrderById(id);
    }
}
